package generic.gui.util;

import java.awt.Color;
import java.awt.Font;

import javax.swing.JTextField;

@SuppressWarnings("serial")
public class JTextFieldForm extends JTextField {

	public JTextFieldForm(int columns) {
		super(columns);
		setFont(new Font("Calibri", Font.PLAIN, 15));
	}

	public JTextFieldForm() {
		setFont(new Font("Calibri", Font.PLAIN, 15));
	}
	
	public void destacaBackground(){
        super.setBackground(new Color(255, 0, 0));
	}
	public void destacaForeground(){
        super.setForeground(new Color(0, 0, 255));
	}
	public void normaliza(){
		JTextField jTextField = new JTextField();
        super.setBackground(jTextField.getBackground());
	}
  
}
